package org.com.FeignClient;

import Entity.Blog;
import org.com.FeignFallback.BlogFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "Service-Blog",fallback = BlogFallback.class)
public interface BlogFeign {
    @GetMapping("/blog/list")
     List<Blog> list();
}
